//
//  LSZDiscoverController.swift
//  醒浪微博
//
//  Created by 雷顺哲 on 16/7/9.
//  Copyright © 2016年 LSZ. All rights reserved.
//

import UIKit

class LSZDiscoverController: LSZVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if isLogin {
            
        }else {
            vistorView?.updataVisitorInfo(message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imageName: "visitordiscover_image_message")
        }
        
        setUpUI()
    }

    private func setUpUI() {
        
        let searchView = LSZDiscoverSearchView.searchView()
        
//        设置XIB的宽度
        searchView.width = self.view.width
        
        navigationItem.titleView = searchView
        
        tabBarItem.badgeValue = "哈哈"
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
